- avr-gcc -g -Wall -O2 -mmcu=attiny85 -I /usr/avr/include -Wl,-Map,test.map -o test.elf main.c -lm
- In file included from /usr/avr/include/avr/io.h:99:0,
- from main.c:3:
- main.c:50:20: error: expected identifier or ‘(’ before ‘volatile’
- #define UARTTXPORT PORTB
- ^
- main.c:92:2: note: in expansion of macro ‘UARTTXPORT’
- UARTTXPORT |= (1 << UARTTXBIT);
- ^~~~~~~~~~
- main.c:50:20: error: expected ‘)’ before ‘(’ token
- #define UARTTXPORT PORTB
- ^
- main.c:92:2: note: in expansion of macro ‘UARTTXPORT’
- UARTTXPORT |= (1 << UARTTXBIT);
- ^~~~~~~~~~
- main.c:93:2: warning: data definition has no type or storage class
- usart_bitdelay();
- ^~~~~~~~~~~~~~
- main.c:93:2: warning: type defaults to ‘int’ in declaration of ‘usart_bitdelay’ [-Wimplicit-int]
- main.c:93:2: error: conflicting types for ‘usart_bitdelay’
- main.c:65:6: note: previous definition of ‘usart_bitdelay’ was here
- void usart_bitdelay() {
- ^~~~~~~~~~~~~~
- main.c:94:1: error: expected identifier or ‘(’ before ‘}’ token
- }
- ^
- In file included from main.c:4:0:
- main.c:96:42: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
- static FILE mystdout = FDEV_SETUP_STREAM(usart_putchar, NULL, _FDEV_SETUP_WRITE);
- ^
- main.c:96:42: note: (near initialization for ‘mystdout.put’)
- main.c: In function ‘getTemp’:
- main.c:101:2: warning: implicit declaration of function ‘nop’ [-Wimplicit-function-declaration]
- nop();
- ^~~
- At top level:
- main.c:96:13: warning: ‘mystdout’ defined but not used [-Wunused-variable]
- static FILE mystdout = FDEV_SETUP_STREAM(usart_putchar, NULL, _FDEV_SETUP_WRITE);
- ^~~~~~~~
- make: *** [Makefile:34: test.elf] Error 1